class="col-md-6"{include file="common/top"}
<div id="page-wrapper">
    <div id="page-inner">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-head-line">费用列表</h1>
                <h1 class="page-subhead-line"></h1>

            </div>
        </div>
        <!-- /. ROW  -->

        <div class="row">
            <div class="col-md-6" style="width: 100%">
                <!--   Kitchen Sink -->
                <div class="panel panel-default">
                    <div class="panel-heading">
                        费用列表详细信息<a href="/admin/costs/add">添加</a>
                    </div>
                    <div class="panel-body">
                        <div class="table-responsive">
                            <table class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>杠杆</th>
                                    <th>过夜费</th>
                                    <th>保证金</th>
                                    <th>手续费</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="query" id="vo"}
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td> {$vo.lever}</td>
                                    <td> {$vo.overnight_fee}</td>
                                    <td> {$vo.bond}</td>
                                    <td>{$vo.service_charge}</td>
                                    <td>
                                        <div class="button-group">
                                            <!--                        <a class="button border-main" href="add.html"><span class="icon-edit"></span> 修改</a>-->
                                            <a class="button border-red" href="/admin/costs/update?id={$vo.id}" onclick=" "><span
                                                    class="icon-trash-o"></span> 修改</a>
                                            <!--<a class="button border-red" href="javascript:;" onclick="del({$vo.id})"><span
                                                    class="icon-trash-o"></span> 删除</a>-->
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                                <tr>
                                    <td colspan="20">
                                        <div class="pagelist">{$arr->render()|raw}</div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <!-- End  Kitchen Sink -->
            </div>
        </div>

    </div>
    <!-- /. PAGE INNER  -->
</div>
<script type="text/javascript">
    function del(id) {
        layer.confirm('你确定要删除吗', function () {

            // $.ajax({
            //     type:'delete',
            //     url:'/admin/image/'+id,
            //     datetype:'json',
            //     success:function(data){
            //         if(data.status=='success'){
            //             layer.msg(data.msg),{icon:1};
            //         }else{
            //             layer.mag(data.msg),{icon:2};
            //         }
            //         location.href='/admin/image';
            //     }
            // })
        })
    }
</script>
{include file="common/out"}